﻿using System;
using Controller;

public partial class Modules_GalleryHomeControl : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindData();
        }
    }

    public void BindData()
    {
        var controller = new VYC21Controller();
        var model = controller.GetLimitAlbumForModule(1);

        if (model.Count > 0)
        {
            repeaterAlbum.DataSource = model;
            repeaterAlbum.DataBind();
        }
    }
}